#ifndef __MAIN_PAGE_H__
#define __MAIN_PAGE_H__

#include "render/pixel/pixelbitmap.h"
#include "render/pixel/pixelbutton.h"

typedef void (Delegater::*OnMainPagePlayerModeClickFunc)();
typedef void (Delegater::*OnMainPageEnemyModeClickFunc)();
typedef void (Delegater::*OnMainPageExitClickFunc)();

class MainPage
{
public:
	MainPage();
	~MainPage();

	void SetVisible(bool v);

private:
	void OnBtnPlayerModeClick();
	void OnBtnEnemyModeClick();
	void OnBtnExitClick();

public:
	Event<OnMainPagePlayerModeClickFunc> OnPlayerModeClick;
	Event<OnMainPageEnemyModeClickFunc> OnEnemyModeClick;
	Event<OnMainPageExitClickFunc> OnExitClick;

private:
	PixelBitmap m_bkg;
	PixelButton m_btnPlayerMode;
	PixelButton m_btnEnemyMode;
	PixelButton m_btnExit;
};

#endif